package com.chance.cc.crawler.development.command.publish.cnsf99;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.cnsf99.Cnsf99CrawlerScheduleJob;
import com.chance.cc.crawler.development.command.script.cnsf99.Cnsf99CrawlerScript;
import com.chance.cc.crawler.development.command.trigger.domain.cnsf99.Cnsf99ScheduleTrigger;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2020/12/18 11:04
 * @Description
 *      养老网
 **/
public class Cnsf99PublishCrawlerJob {

    public static void main(String[] args) {

        publishCrawlerJob();
    }

    public static void publishCrawlerJob(){
        //发布采集job
        CrawlerJob crawlerJob = Cnsf99CrawlerScheduleJob.publishCrawlerScheduleJobInfo();
        Cnsf99ScheduleTrigger.publishScheduleTriggerInfo(crawlerJob.generateCrawlerKey(), crawlerJob.generateCrawlerTriggerKey());
        Cnsf99CrawlerScript.publishCrawlerNodeScript();

    }
}
